<template>
  <div>
    <!-- <img src="./assets/1.png" alt="" v-show="isShow"><br> -->
    <img src="./assets/1.png" alt="" v-if="isShow"><br>
    <button @click="fn">点击以后显示和隐藏</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
          isShow: true,
        };
  },
  methods: {
    fn() {
      this.isShow =!this.isShow
    }
  }
};
</script>

<style>
</style>